package src.LLVM.mem;

import src.LLVM.IR;

public class LoadIR implements IR {
    private final String address;
    static String operation  = "load";
    private final String resReg;
    public LoadIR(String resReg, String address){
        this.address = address;
        this.resReg = resReg;
    }
    @Override
    public String toString(){
        //%x341 = load i32, i32* %x302
        //%v397 = load i32*, i32* * %v352
        return "\t" + resReg + " = " + operation + " i32, i32* " + address;
    }
}
